package ooday03;

public class Dog extends Animals implements Swim{
    String nature;
    Dog(String name,int age,String color,String food,String nature){
        super(name,age,color,food);
        this.nature=nature;
    }
     void lookHome(){
        System.out.println(name+"正在看家");
    }
    void sayHi(){
        System.out.println(nature+color+"的"+name+"已经"+age+"岁了");
    }
    public void swim(){
        System.out.println(nature+color+"的"+name+"在游泳");
    }
}
